-----------------------------------
--  Area: West Ronfaure
--   NPC: ???
-- @zone: 100
--  @pos: -550 -0 -542
--
-- Involved in Quest: The Dismayed Customer
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------

require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/zones/West_Ronfaure/TextIDs");

-----------------------------------
-- onTrade Action
-----------------------------------

function onTrade(player,npc,trade)

end; 

-----------------------------------
-- onTrigger Action
-----------------------------------

function onTrigger(player,npc)

	if (player:getQuestStatus(SANDORIA, THE_DISMAYED_CUSTOMER) == QUEST_ACCEPTED and player:getVar("theDismayedCustomer") == 2) then
		player:addKeyItem(GULEMONTS_DOCUMENT);
		player:messageSpecial(KEYITEM_OBTAINED, GULEMONTS_DOCUMENT);
		player:setVar("theDismayedCustomer", 0);
	else
		player:messageSpecial(DISMAYED_CUSTOMER);
	end;
	
end;

-----------------------------------
-- onEventUpdate
-----------------------------------

function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;

-----------------------------------
-- onEventFinish
-----------------------------------

function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);	
end;




